<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script src="../lib/vue.js"></script>
    <div id="app">
      <p :style="{fontSize:a}">111</p>
      <p :style="abc">222</p>
      <p :style="[x,y]">333</p>
    </div>
    <script>
      new Vue({
        el: '#app',
        data: {
          a: '18px',
          abc: {
            fontSize: '18px',
            color: 'red',
          },
          x: {
            fontSize: '20px',
          },
          y: {
            border: '1px solid red',
          },
        },
      })
    </script>
  </body>
</html>
